package goods.api;

import goods.model.ProductBrand;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Created by Roney on 2016/10/21.
 */
public interface ProductBrandApi {

    public String toString();

    public ProductBrand findDataById(String id);

    public void saveBean(ProductBrand productBrand);

    public void deleteDataById(String id);

    public Page<ProductBrand> getProductBrandPage(String name, Pageable pageable);

    public void saveList(List<ProductBrand> productBrands);

    /**
     * 根据名称查询品牌
     * @param brandName
     * @return
     */
    List<ProductBrand> listBrandByName(String brandName);

    /**
     * 获取所有品牌 page
     * @param pageable
     * @return
     */
    Page<ProductBrand> listAllBrands(Pageable pageable);
}
